package cn.yj.core.business.service;

import cn.yj.cgs.dba.entity.Swiper;
import cn.yj.cgs.dba.mapper.SwiperMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author 永健
 * @since 2021-06-20 16:20
 */
@Service
public class SwiperService {

    @Resource
    private SwiperMapper swiperMapper;

    public List<String> listSwiper(){
        List<Swiper> swipers = swiperMapper.listChoose();
        return swipers.stream().map(swiper -> swiper.getImgUrl()).collect(Collectors.toList());
    }
}
